import request from '@/utils/request'

/**
 * 新车库存-其他入库
 * @param {*} form
 * @param {*} pageSize
 * @param {*} currentPage
 */
export function dataList(form, pageSize, currentPage) {
  const data = {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  }
  return request.post('/sq/qtrk/page', data)
}
/**
 * 新增
 * @param {*} options
 */
export function addData(options={}) {
  return request.post('/sq/qtrk/save', options)
}
/**
 * 修改
 * @param {*} options
 */
export function updateData(options={}) {
  return request.put('/sq/qtrk/save', options)
}

/**
 * 根据id查询详情
 * @param {*} options
 */
export function details(id) {
  return request.get('/sq/qtrk/detail/' + id)
}

/**
 * 入库
 * @param {*} id 
 */
export function inStock(id) {
  return request.get('/sq/qtrk/inStock/' + id)
}

/**
 * 根据id查询详情
 * @param {*} options
 */
export function findByInfoId(storeId) {
  return request.get('/sq/qtrk/info/' + storeId)
}
